package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.correction.model.Cre_warning_detail;
import com.power.sifa.correction.model.pageInfo.Cre_warning_detailPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  预警信息违规详情 Feign
 */
public interface ICre_warning_detailFeign {

    /**
     * 根据预警id查询明细
     */
    @PostMapping("/cre_warning_detail/queryListByWarnid")
    ResponseDTO queryListByWarnid(@RequestParam String warnid);

    /**
     * 预警信息违规详情分页列表
     */
    @PostMapping("/cre_warning_detail/list")
    ResponseDTO list(@RequestBody Cre_warning_detailPageInfo cre_warning_detailPageInfo);

    /**
    * 查看预警信息违规详情
    */
    @GetMapping("/cre_warning_detail/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除预警信息违规详情
    */
    @PostMapping("/cre_warning_detail/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看预警信息违规详情 复合主键使用
    // */
    //@PostMapping("/cre_warning_detail/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Cre_warning_detail.Cre_warning_detailPK pk);

    /**
     * 修改或保存预警信息违规详情
     */
    @PostMapping("/cre_warning_detail/save")
    ResponseDTO save(@RequestBody Cre_warning_detail  cre_warning_detail);

    ///**
    // * 删除预警信息违规详情 复合主键使用
    // */
    //@PostMapping("/cre_warning_detail/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Cre_warning_detail.Cre_warning_detailPK pk);

    /**
     * 批量删除预警信息违规详情
     */
    @PostMapping("/cre_warning_detail/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/cre_warning_detail/output")
    void output(HttpServletResponse response, @RequestBody Cre_warning_detailPageInfo cre_warning_detailPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/cre_warning_detail/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/cre_warning_detail/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;

}
